package com.lhk.appframework.net.request.login;

import com.lhk.appframework.utils.json.UtilsJson;

public class ImplNetRequestLoginResponse implements NetRequestLoginResponse {

	private String StatusCode;
	private String MsgCode;
	
	private NetRequestLoginRespnseData data;
	
	public static ImplNetRequestLoginResponse netInstantce(String json){
		ImplNetRequestLoginResponse res = new ImplNetRequestLoginResponse();
		res.data = (NetRequestLoginRespnseData) UtilsJson.json2Object(json, NetRequestLoginRespnseData.class);
		
		return res;
	}
	
	public static ImplNetRequestLoginResponse netInstantce(String statusCode, String msgCode){
		ImplNetRequestLoginResponse res = new ImplNetRequestLoginResponse();
		
		res.setMsgCode(msgCode);
		res.setStatusCode(statusCode);
		
		return res;
	}
	

	public String getStatusCode() {
		return StatusCode;
	}

	public void setStatusCode(String statusCode) {
		StatusCode = statusCode;
	}

	public String getMsgCode() {
		return MsgCode;
	}

	public void setMsgCode(String msgCode) {
		MsgCode = msgCode;
	}

	@Override
	public NetRequestLoginRespnseData getData() {
		// TODO Auto-generated method stub
		return data;
	}

}
